<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script src="/static/js/client/clientTarkingList.js"></script>

</head>
<body>
<table id="clientTarkingList_datagrid" >

</table>

<%--客户计划主界面的工具类--%>
<div id="clientTarkingList_toolbar">
        <a class="easyui-linkbutton" iconCls="icon-add2 iconfont" plain="true" data-cmd="add">新增计划</a>
        <a class="easyui-linkbutton" iconCls="icon-bianji iconfont" plain="true" data-cmd="edit">修改计划</a>
    <a id="state_btn" class="easyui-linkbutton" iconCls="iconfont icon-shanchu"
       plain="true" data-cmd="del">删除计划</a>


    <p>
        日期：<input id="beginDate" class="easyui-datebox"> ~
        <input id="endDate" class="easyui-datebox">
        模糊搜索：<input id="keyword" class="easyui-textbox" prompt="客户或录入员">
        <a class="easyui-linkbutton" iconCls="iconfont icon-sousuo" plain="true" data-cmd="query">搜索</a>
    </p>
</div>

<%--客户计划编辑界面的工具类--%>
<div id="form_btns">
    <a class="easyui-linkbutton" iconCls="iconfont icon-dui" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="iconfont icon-jujue" plain="true" data-cmd="cancel">取消</a>
</div>


<%--客户信息表格的工具栏--%>
<div id="form_btns_plan">
    <a class="easyui-linkbutton" iconCls="iconfont icon-dui" plain="true" data-cmd="getClient">选择</a>
</div>


<div id="clientTarkingList_dialog">
    <form method="post" id="client_form">
        <input type="hidden" name="id" id="clientTarkingListId"/>
        <input type="hidden" id="clientId" class="easyui-textbox" name="client.id"/>
        <table align="center" >
            <tbody>
            <tr>
                <td>执行结果:</td>
                <td><input id="result" class="easyui-combobox" name="result"
                           data-options="valueField:'name',
                           textField:'name',
                           url:'/dictionaries/getDictionaries.do?str=result'" /> </td>
            </tr>
            <tr>
                <td>客户:</td>
                <td><input id="client" class="easyui-textbox" name="client.name"
                           data-options="readonly:true,
                           required:true"/>
                    <a class="easyui-linkbutton" iconCls="iconfont icon-sousuo" plain="true" data-cmd="queryClient">查询客户</a>
                </td>
            </tr>
            <tr>
                <td>跟进人:</td>
                <td><input id="chargeuser" class="easyui-combobox" name="chargeuser.id"
                           data-options="valueField:'id',
                           textField:'realname',
                           editable:false,
                           url:'/employee/selectName.do',
                           required:true" /> </td>
            </tr>
            <p>
                <span class="left">跟进时间:</span>
                <input name="followdate" class="easyui-datebox"
                       data-options="editable:false">
            </p>
            <tr>
                <td>实施方式:</td>
                <td><input id="method" class="easyui-combobox" name="method"
                           data-options="valueField:'name',
                           textField:'name',
                           url:'/dictionaries/getDictionaries.do?str=type'" /> </td>
            </tr>
            <tr>
                <td>备注:</td>
                <td><input name="remarks" class="easyui-textbox" /></td>
            </tr>
            <tr>
                <td>计划详情:</td>
                <td><input name="details" class="easyui-textbox" /></td>
            </tr>

            <tbody>
        </table>
    </form>
</div>

<div id="client_dialog">
    <table id="client_datagrid" ></table>
</div>

</body>
</html>
